package st.yushao.restaurant.action.custom;

import java.math.BigDecimal;

import st.yushao.restaurant.dao.OrderDaoService;
import st.yushao.restaurant.fw.AbstractBaseAction;
import st.yushao.restaurant.vo.OrderVO;

public class AddOrder extends AbstractBaseAction {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 2141425798249113546L;
    private int id;
    private int foodId;
    private int tableId;
    private BigDecimal price;
    private int status;
    private int userId;
    private String backup1;
    private String backup2;
    private String backup3;
    /**
     * hibernate service of foodtype
     */
    private OrderDaoService os;
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getFoodId() {
        return foodId;
    }

    public void setFoodId(int foodId) {
        this.foodId = foodId;
    }

    public int getTableId() {
        return tableId;
    }

    public void setTableId(int tableId) {
        this.tableId = tableId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getBackup1() {
        return backup1;
    }

    public void setBackup1(String backup1) {
        this.backup1 = backup1;
    }

    public String getBackup2() {
        return backup2;
    }

    public void setBackup2(String backup2) {
        this.backup2 = backup2;
    }

    public String getBackup3() {
        return backup3;
    }

    public void setBackup3(String backup3) {
        this.backup3 = backup3;
    }

    /**
     * setter of ftds
     */
    public void setOs(OrderDaoService os) {
        this.os = os;
    }

    public String doExecute() {
        OrderVO orderVo = new OrderVO();
        os.addOrder(orderVo);
        return SUCCESS;
    }
}
